<script setup lang="ts">
const year = new Date().getFullYear();
</script>

<template>
  <footer class="footer">
    <div class="footer-content">
      <div class="footer-text">
        <span>SageCode © {{ year }}</span>
        <span class="divider">|</span>
        <span>智能编程挑战与评测平台</span>
      </div>
      <div class="footer-links">
        <a href="#" class="link">关于我们</a>
        <a href="#" class="link">使用指南</a>
        <a href="#" class="link">联系我们</a>
      </div>
    </div>
  </footer>
</template>

<style scoped>
.footer {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 20px 0;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-text {
  font-size: 14px;
  color: #999;
}

.divider {
  margin: 0 10px;
  color: #666;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.link {
  color: #999;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.link:hover {
  color: #ffffff;
}
</style>